// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import $ from 'jquery' ;
import resource from 'vue-resource'
import 'bootstrap/dist/css/bootstrap.min.css';
import 'bootstrap/dist/js/bootstrap.min.js';
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import  VueParticles  from   'vue-particles'


Vue.use(ElementUI)
Vue.prototype.rootUrl = '/agent/';
Vue.config.productionTip = false
Vue.use(resource)
Vue.use(VueParticles)


var EventBus = new Vue();

Object.defineProperties(Vue.prototype, {
  $bus: {
    get: function () {
      return EventBus
    }
  }
})
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
// $(function(){
//   alert("hello,我是jquery")
//
// })
